/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race Alaskan Native Aleut Bristol Bay</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S16466 (C-0-T14914-S14915-S15470-S15690-S16466-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceAlaskanNativeAleutBristolBay()
 * @model extendedMetaData="name='RaceAlaskanNativeAleutBristolBay'"
 * @generated
 */
public enum RaceAlaskanNativeAleutBristolBay implements Enumerator {
	/**
	 * The '<em><b>19729</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19729_VALUE
	 * @generated
	 * @ordered
	 */
	_19729(0, "_19729", "1972-9"),

	/**
	 * The '<em><b>19737</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19737_VALUE
	 * @generated
	 * @ordered
	 */
	_19737(1, "_19737", "1973-7"),

	/**
	 * The '<em><b>19745</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19745_VALUE
	 * @generated
	 * @ordered
	 */
	_19745(2, "_19745", "1974-5"),

	/**
	 * The '<em><b>19752</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19752_VALUE
	 * @generated
	 * @ordered
	 */
	_19752(3, "_19752", "1975-2"),

	/**
	 * The '<em><b>19760</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19760_VALUE
	 * @generated
	 * @ordered
	 */
	_19760(4, "_19760", "1976-0"),

	/**
	 * The '<em><b>19778</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19778_VALUE
	 * @generated
	 * @ordered
	 */
	_19778(5, "_19778", "1977-8"),

	/**
	 * The '<em><b>19786</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19786_VALUE
	 * @generated
	 * @ordered
	 */
	_19786(6, "_19786", "1978-6"),

	/**
	 * The '<em><b>19794</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19794_VALUE
	 * @generated
	 * @ordered
	 */
	_19794(7, "_19794", "1979-4"),

	/**
	 * The '<em><b>19802</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19802_VALUE
	 * @generated
	 * @ordered
	 */
	_19802(8, "_19802", "1980-2"),

	/**
	 * The '<em><b>19810</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19810_VALUE
	 * @generated
	 * @ordered
	 */
	_19810(9, "_19810", "1981-0"),

	/**
	 * The '<em><b>19828</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_19828_VALUE
	 * @generated
	 * @ordered
	 */
	_19828(10, "_19828", "1982-8");

	/**
	 * The '<em><b>19729</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19729</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19729
	 * @model literal="1972-9"
	 * @generated
	 * @ordered
	 */
	public static final int _19729_VALUE = 0;

	/**
	 * The '<em><b>19737</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19737</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19737
	 * @model literal="1973-7"
	 * @generated
	 * @ordered
	 */
	public static final int _19737_VALUE = 1;

	/**
	 * The '<em><b>19745</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19745</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19745
	 * @model literal="1974-5"
	 * @generated
	 * @ordered
	 */
	public static final int _19745_VALUE = 2;

	/**
	 * The '<em><b>19752</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19752</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19752
	 * @model literal="1975-2"
	 * @generated
	 * @ordered
	 */
	public static final int _19752_VALUE = 3;

	/**
	 * The '<em><b>19760</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19760</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19760
	 * @model literal="1976-0"
	 * @generated
	 * @ordered
	 */
	public static final int _19760_VALUE = 4;

	/**
	 * The '<em><b>19778</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19778</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19778
	 * @model literal="1977-8"
	 * @generated
	 * @ordered
	 */
	public static final int _19778_VALUE = 5;

	/**
	 * The '<em><b>19786</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19786</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19786
	 * @model literal="1978-6"
	 * @generated
	 * @ordered
	 */
	public static final int _19786_VALUE = 6;

	/**
	 * The '<em><b>19794</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19794</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19794
	 * @model literal="1979-4"
	 * @generated
	 * @ordered
	 */
	public static final int _19794_VALUE = 7;

	/**
	 * The '<em><b>19802</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19802</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19802
	 * @model literal="1980-2"
	 * @generated
	 * @ordered
	 */
	public static final int _19802_VALUE = 8;

	/**
	 * The '<em><b>19810</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19810</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19810
	 * @model literal="1981-0"
	 * @generated
	 * @ordered
	 */
	public static final int _19810_VALUE = 9;

	/**
	 * The '<em><b>19828</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>19828</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_19828
	 * @model literal="1982-8"
	 * @generated
	 * @ordered
	 */
	public static final int _19828_VALUE = 10;

	/**
	 * An array of all the '<em><b>Race Alaskan Native Aleut Bristol Bay</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceAlaskanNativeAleutBristolBay[] VALUES_ARRAY =
		new RaceAlaskanNativeAleutBristolBay[] {
			_19729,
			_19737,
			_19745,
			_19752,
			_19760,
			_19778,
			_19786,
			_19794,
			_19802,
			_19810,
			_19828,
		};

	/**
	 * A public read-only list of all the '<em><b>Race Alaskan Native Aleut Bristol Bay</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceAlaskanNativeAleutBristolBay> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race Alaskan Native Aleut Bristol Bay</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAlaskanNativeAleutBristolBay get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAlaskanNativeAleutBristolBay result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race Alaskan Native Aleut Bristol Bay</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAlaskanNativeAleutBristolBay getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAlaskanNativeAleutBristolBay result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race Alaskan Native Aleut Bristol Bay</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAlaskanNativeAleutBristolBay get(int value) {
		switch (value) {
			case _19729_VALUE: return _19729;
			case _19737_VALUE: return _19737;
			case _19745_VALUE: return _19745;
			case _19752_VALUE: return _19752;
			case _19760_VALUE: return _19760;
			case _19778_VALUE: return _19778;
			case _19786_VALUE: return _19786;
			case _19794_VALUE: return _19794;
			case _19802_VALUE: return _19802;
			case _19810_VALUE: return _19810;
			case _19828_VALUE: return _19828;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceAlaskanNativeAleutBristolBay(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceAlaskanNativeAleutBristolBay
